-- GENERATED SPELL FOR [Mutant Horror] --


function spell0_21305(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(8599,pUnit)
pUnit:RegisterEvent('Sorts_21305', 561, 1)
end

function spell1_21305(pUnit, Event) --@Mutated Blood,n/a--
pUnit:FullCastSpellOnTarget(37950,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21305', 15000, 1)
end

function Sorts_21305(pUnit, Event)
local choix_sorts_21305 = math.random(0, 1)
if choix_sorts_21305 == 0 then
pUnit:RegisterEvent('spell0_21305', 1, 1)
end
if choix_sorts_21305 == 1 then
pUnit:RegisterEvent('spell1_21305', 1, 1)
end
end

function mob21305_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21305', math.random(1500, 3000), 1)
end

function mob21305_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21305_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21305_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21305, 1, 'mob21305_Action')
RegisterUnitEvent(21305, 2, 'mob21305_Leave')
RegisterUnitEvent(21305, 3, 'mob21305_Kill')
RegisterUnitEvent(21305, 4, 'mob21305_Die')
